/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Cam_reporteCriteria extends AbstractORMCriteria {
	public final StringExpression re_id_reporte;
	public final StringExpression re_fecha;
	public final StringExpression re_coordenadas;
	public final StringExpression re_imagen_url;
	
	public Cam_reporteCriteria(Criteria criteria) {
		super(criteria);
		re_id_reporte = new StringExpression("re_id_reporte", this);
		re_fecha = new StringExpression("re_fecha", this);
		re_coordenadas = new StringExpression("re_coordenadas", this);
		re_imagen_url = new StringExpression("re_imagen_url", this);
	}
	
	public Cam_reporteCriteria(PersistentSession session) {
		this(session.createCriteria(Cam_reporte.class));
	}
	
	public Cam_reporteCriteria() throws PersistentException {
		this(orm.CamRegPersistentManager.instance().getSession());
	}
	
	public Cam_tipo_reporteCriteria createTi_id_tipo_reporteCriteria() {
		return new Cam_tipo_reporteCriteria(createCriteria("ti_id_tipo_reporte"));
	}
	
	public Cam_reporte uniqueCam_reporte() {
		return (Cam_reporte) super.uniqueResult();
	}
	
	public Cam_reporte[] listCam_reporte() {
		java.util.List list = super.list();
		return (Cam_reporte[]) list.toArray(new Cam_reporte[list.size()]);
	}
}

